<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initDocType() {
        $this->bootstrap("view");
        $view = $this->getResource("view");
        
        $view->doctype('HTML5');
    }
    
    protected function _initModule() {
        $front = Zend_Controller_Front::getInstance();
        $front->setDefaultModule('web');
        
    }
    
    protected function _initAutoload() {
        $autoload = Zend_Loader_Autoloader::getInstance();
        $autoload->registerNamespace('Plugins_');
        
        $view = $this->getResource('view');
        $view->addHelperPath('CHelper/Views/Helpers', 'CHelper_View_Helper');
        
        Zend_Controller_Action_HelperBroker::addPrefix('CHelper_');
    }

    protected function _initPlugins() {
        $front = Zend_Controller_Front::getInstance();
        $front->registerPlugin(new Plugins_Layout());
    }
}